﻿using System;
using UnityEngine;
using UnityEngine.UI;

namespace Assets.HSVPicker
{
	// Token: 0x0200002E RID: 46
	[Serializable]
	public class ColorPickerSetup
	{
		// Token: 0x040001F9 RID: 505
		public bool ShowRgb = true;

		// Token: 0x040001FA RID: 506
		public bool ShowHsv;

		// Token: 0x040001FB RID: 507
		public bool ShowAlpha = true;

		// Token: 0x040001FC RID: 508
		public bool ShowColorBox = true;

		// Token: 0x040001FD RID: 509
		public bool ShowColorSliderToggle = true;

		// Token: 0x040001FE RID: 510
		public ColorPickerSetup.ColorHeaderShowing ShowHeader = ColorPickerSetup.ColorHeaderShowing.ShowAll;

		// Token: 0x040001FF RID: 511
		public ColorPickerSetup.UiElements RgbSliders;

		// Token: 0x04000200 RID: 512
		public ColorPickerSetup.UiElements HsvSliders;

		// Token: 0x04000201 RID: 513
		public ColorPickerSetup.UiElements ColorToggleElement;

		// Token: 0x04000202 RID: 514
		public ColorPickerSetup.UiElements AlphaSlidiers;

		// Token: 0x04000203 RID: 515
		public ColorPickerSetup.UiElements ColorHeader;

		// Token: 0x04000204 RID: 516
		public ColorPickerSetup.UiElements ColorCode;

		// Token: 0x04000205 RID: 517
		public ColorPickerSetup.UiElements ColorPreview;

		// Token: 0x04000206 RID: 518
		public ColorPickerSetup.UiElements ColorBox;

		// Token: 0x04000207 RID: 519
		public Text SliderToggleButtonText;

		// Token: 0x04000208 RID: 520
		public string PresetColorsId = "default";

		// Token: 0x04000209 RID: 521
		public Color[] DefaultPresetColors;

		// Token: 0x0200002F RID: 47
		public enum ColorHeaderShowing
		{
			// Token: 0x0400020B RID: 523
			Hide,
			// Token: 0x0400020C RID: 524
			ShowColor,
			// Token: 0x0400020D RID: 525
			ShowColorCode,
			// Token: 0x0400020E RID: 526
			ShowAll
		}

		// Token: 0x02000030 RID: 48
		[Serializable]
		public class UiElements
		{
			// Token: 0x06000104 RID: 260 RVA: 0x0000C608 File Offset: 0x0000A808
			public void Toggle(bool active)
			{
				for (int i = 0; i < this.Elements.Length; i++)
				{
					this.Elements[i].gameObject.SetActive(active);
				}
			}

			// Token: 0x0400020F RID: 527
			public RectTransform[] Elements;
		}
	}
}
